<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" /> 
        <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
        <link rel="stylesheet" href="Widget/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
        <link href="Widget/icheck/icheck.css" rel="stylesheet" type="text/css" />   
		<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
	    <script src="js/jquery-1.9.1.min.js"></script>   
        <script src="assets/js/bootstrap.min.js"></script>
        <script src="assets/js/typeahead-bs2.min.js"></script>
		<!-- page specific plugin scripts -->
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script type="text/javascript" src="js/H-ui.js"></script> 
        <script type="text/javascript" src="js/H-ui.admin.js"></script> 
        <script src="assets/layer/layer.js" type="text/javascript" ></script>
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
        <script type="text/javascript" src="Widget/zTree/js/jquery.ztree.all-3.5.min.js"></script> 
        <script src="js/lrtk.js" type="text/javascript" ></script>
			<style>
		.imgg img{
			max-width:100px
			}
		</style>
<title>产品列表</title>
</head>
<body>
<div class=" page-content clearfix">
 <div id="products_style">
  
     <!--产品列表展示-->
     <div class="h_products_list clearfix" id="products_list">
       <div id="scrollsidebar" class="left_Treeview">
        <div class="show_btn" id="rightArrow"><span></span></div>
        <div class="widget-box side_content" >
         <div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
         <div class="side_list"><div class="widget-header header-color-green2"><h4 class="lighter smaller">供应商列表</h4></div>
         <div class="widget-body">
          <div class="widget-main padding-8"><div id="treeDemo" class="ztree"></div></div>
        </div>
       </div>
      </div>  
     </div>

	 
	 
	 
	 
         <div class="table_menu_list" id="testIframe">
  <table class="table table-striped table-bordered table-hover" id="sample-table">

		<thead>
		 <tr>
				<th width="25px"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
				<th width="80px">产品编号</th>
				<th width="250px">产品名称</th>
				<th width="100px">商品图片</th>
				<th width="100px">价格</th>
				<th width="100px">所属名称</th>
                <th width="100px">品质</th>				
				<th width="90px">月销</th>
                <th width="70px">库存</th>   
				<th width="100px">描述</th>            
				<th width="150px">操作</th>
			</tr>
		</thead>
	<tbody>
       <tr>
	   
        <td><label><input type="checkbox" class="ace" ><span class="lbl"></span></label></td>
        <td>45631</td>               
        <td><u style="cursor:pointer" class="text-primary" onclick="">小米 Max 全网通 高配版 3GB内存 64GB ROM 金色 移动联通电信4G手机Y</u></td>
		<td  width="100px" class="order_product_name">
      <a onclick="member_select('110')" href="javascript:;"  class="product_Display imgg"><img src="images/6-DZM-32.png"  title="旭派电池"/>
     </td>
        <td>5467</td>
        <td>手机</td> 
        <td>良</td>         
        <td>200部</td>
        <td>2000</td>
		<td>买手机就选小米</td>
       <td class="td-manage">
	  			 <a title="查看商品"  href="online_order_xd_detail.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
			
				   <a title="购买" onclick="member_fh()" class="btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">购买</i></a>
           </td>
	  </tr>
       
       <tr>
        <td><label><input type="checkbox" class="ace" ><span class="lbl"></span></label></td>
        <td>45631</td>               
        <td><u style="cursor:pointer" class="text-primary" onclick="">小米 Max 全网通 高配版 3GB内存 64GB ROM 金色 移动联通电信4G手机Y</u></td>
		<td  width="100px" class="order_product_name">
      <a onclick="member_select('510')" href="javascript:;"  class="product_Display imgg"><img src="images/6-DZM-32.png"  title="旭派电池"/>
     </td>
        <td>5467</td>
        <td>手机</td> 
        <td>良</td>         
        <td>200部</td>
        <td>2000</td>
		<td>买手机就选小米</td>
       <td class="td-manage">
				   <a title="查看商品"  href="online_order_xd_detail.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
				   <a title="购买" onclick="member_fh()" class="btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">购买</i></a>
           </td>
	  </tr>
        <td><label><input type="checkbox" class="ace" ><span class="lbl"></span></label></td>
        <td>45631</td>               
        <td><u style="cursor:pointer" class="text-primary" onclick="">小米 Max 全网通 高配版 3GB内存 64GB ROM 金色 移动联通电信4G手机Y</u></td>
		<td  width="100px" class="order_product_name">
      <a onclick="member_select('510')" href="javascript:;"  class="product_Display imgg"><img src="images/6-DZM-32.png"  title="旭派电池"/>
     </td>
        <td>5467</td>
        <td>手机</td> 
        <td>良</td>         
        <td>200部</td>
        <td>2000</td>
		<td>买手机就选小米</td>
       <td class="td-manage">
				 <a title="查看商品"  href="online_order_xd_detail.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
				   <a title="购买" onclick="member_fh()" class="btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">购买</i></a>
           </td>
	  </tr>
        <td><label><input type="checkbox" class="ace" ><span class="lbl"></span></label></td>
        <td>45631</td>               
        <td><u style="cursor:pointer" class="text-primary" onclick="">小米 Max 全网通 高配版 3GB内存 64GB ROM 金色 移动联通电信4G手机Y</u></td>
		<td  width="100px" class="order_product_name">
      <a onclick="member_select('510')" href="javascript:;"  class="product_Display imgg"><img src="images/6-DZM-32.png"  title="旭派电池"/>
     </td>
        <td>5467</td>
        <td>手机</td> 
        <td>良</td>         
        <td>200部</td>
        <td>2000</td>
		<td>买手机就选小米</td>
       <td class="td-manage">
				<a title="查看商品"  href="online_order_xd_detail.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
				   <a title="购买" onclick="member_fh()" class="btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">购买</i></a>
           </td>
	  </tr>
        <td><label><input type="checkbox" class="ace" ><span class="lbl"></span></label></td>
        <td>45631</td>               
        <td><u style="cursor:pointer" class="text-primary" onclick="">小米 Max 全网通 高配版 3GB内存 64GB ROM 金色 移动联通电信4G手机Y</u></td>
		<td  width="100px" class="order_product_name">
      <a onclick="member_select('510')" href="javascript:;"  class="product_Display imgg"><img src="images/6-DZM-32.png"  title="旭派电池"/>
     </td>
        <td>5467</td>
        <td>手机</td> 
        <td>良</td>         
        <td>200部</td>
        <td>2000</td>
		<td>买手机就选小米</td>
       <td class="td-manage">
				  <a title="查看商品"  href="online_order_xd_detail.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
				   <a title="购买" onclick="member_fh()" class="btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">购买</i></a>
           </td>
	  </tr>
        <td><label><input type="checkbox" class="ace" ><span class="lbl"></span></label></td>
        <td>45631</td>               
        <td><u style="cursor:pointer" class="text-primary" onclick="">小米 Max 全网通 高配版 3GB内存 64GB ROM 金色 移动联通电信4G手机Y</u></td>
		<td  width="100px" class="order_product_name">
      <a onclick="member_select('510')" href="javascript:;"  class="product_Display imgg"><img src="images/6-DZM-32.png"  title="旭派电池"/>
     </td>
        <td>5467</td>
        <td>手机</td> 
        <td>良</td>         
        <td>200部</td>
        <td>2000</td>
		<td>买手机就选小米</td>
       <td class="td-manage">
				  <a title="查看商品"  href="online_order_xd_detail.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
				   <a title="购买" onclick="member_fh()" class="btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">购买</i></a>
           </td>
	  </tr>
        <td><label><input type="checkbox" class="ace" ><span class="lbl"></span></label></td>
        <td>45631</td>               
        <td><u style="cursor:pointer" class="text-primary" onclick="">小米 Max 全网通 高配版 3GB内存 64GB ROM 金色 移动联通电信4G手机Y</u></td>
		<td  width="100px" class="order_product_name">
      <a onclick="member_select('510')" href="javascript:;"  class="product_Display imgg"><img src="images/6-DZM-32.png"  title="旭派电池"/>
     </td>
        <td>5467</td>
        <td>手机</td> 
        <td>良</td>         
        <td>200部</td>
        <td>2000</td>
		<td>买手机就选小米</td>
       <td class="td-manage">
				  <a title="查看商品"  href="online_order_xd_detail.html"  class="btn btn-xs btn-success" ><i class="icon-list bigger-120"></i></a> 
				   <a title="购买" onclick="member_fh()" class="btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">购买</i></a>
           </td>
	  </tr>

    </tbody>
    </table>
    </div>     
  </div>
 </div>
<div class="add_menber" id="add_menber_style" style="display:none">
<table class="table table-striped table-bordered table-hover" id="sample-table">
       <thead>
	   <tr>
          	<th width="100px">订单编号</th>
			<th width="100px">价格</th>
			<th width="100px">客户名称</th>
            <th width="100px">产品型号</th>
            <th width="100px">产品数量</th>
           <th width="100px">产品颜色</th>
	</tr>
		</thead>
        <tbody> 
         <tr>
			  <td>201607080001</td>
			  <td>5467</td>
			  <td>旭派</td>
              <td>48ma</td>
              <td><input class="min" name="" type="button" value="-" /> 
				 <input class="text_box" name="goodnum" type="text" value="1" style="width:25px;" /> 
				 <input class="add" name="" type="button" value="+" /></td>
             <td>黑色</td>
        </tr>
	 <label class="label_name" for="form-field-2"> 总计：5467元 </label>
</table>
 </div>
  <div class="addgm_menber" id="addgm_menber_style" style="display:none">
<table class="table table-striped table-bordered table-hover" id="sample-table">
       <thead>
	   <tr>
          	<th width="100px">订单编号</th>
			<th width="100px">价格</th>
			<th width="100px">客户名称</th>
            <th width="100px">产品型号</th>
            <th width="100px">产品数量</th>
           <th width="100px">产品颜色</th>
	</tr>
		</thead>
        <tbody> 
         <tr>
			  <td>201607080001</td>
			  <td>5467</td>
			  <td>旭派</td>
              <td>48ma</td>
              <td><input class="min" name="" type="button" value="-" /> 
				 <input class="text_box" name="goodnum" type="text" value="1" style="width:25px;" /> 
				 <input class="add" name="" type="button" value="+" /></td>
             <td>黑色</td>
        </tr>
</table>
</br> 
</br> 
<table class="table table-striped table-bordered table-hover" id="sample-table">
       <thead>
	   <tr>
          	<th width="100px">订单编号</th>
			<th width="100px">价格</th>
			<th width="100px">客户名称</th>
            <th width="100px">产品型号</th>
            <th width="100px">产品数量</th>
           <th width="100px">产品颜色</th>
	</tr>
		</thead>
        <tbody> 
         <tr>
			  <td>201607080001</td>
			  <td>5467</td>
			  <td>旭派</td>
              <td>48ma</td>
              <td><input class="min" name="" type="button" value="-" /> 
				 <input class="text_box" name="goodnum" type="text" value="1" style="width:25px;" /> 
				 <input class="add" name="" type="button" value="+" /></td>
             <td>黑色</td>
        </tr>
</table>
</br> 
</br> 
<table class="table table-striped table-bordered table-hover" id="sample-table">
       <thead>
	   <tr>
          	<th width="100px">订单编号</th>

			<th width="100px">价格</th>
			<th width="100px">客户名称</th>
            <th width="100px">产品型号</th>
            <th width="100px">产品数量</th>
           <th width="100px">产品颜色</th>
	</tr>
		</thead>
        <tbody> 
         <tr>
			  <td>201607080001</td>
			  <td>5467</td>
			  <td>旭派</td>
              <td>48ma</td>
              <td><input class="min" name="" type="button" value="-" /> 
				 <input class="text_box" name="goodnum" type="text" value="1" style="width:25px;" /> 
				 <input class="add" name="" type="button" value="+" /></td>
             <td>黑色</td>
        </tr>
</table>
 </div>
 <button onclick="member_gm()" class="btn btn-primary" style="float:right;margin-right:200px;margin-bottom:10px;">多件购买</button>
  </div>
  </div>
 </div>
</div>
</body>
</html>
<script>
jQuery(function($) {
		var oTable1 = $('#sample-table').dataTable( {
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,2,3,4,5,8,9]}// 制定列不参与排序
		] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			});
 
$(function() { 
	$("#products_style").fix({
		float : 'left',
		//minStatue : true,
		skin : 'green',	
		durationTime :false,
		spacingw:30,//设置隐藏时的距离
	    spacingh:260,//设置显示时间距
	});
});
</script>
<script type="text/javascript">
//初始化宽度、高度  
 $(".widget-box").height($(window).height()); 
$(".table_menu_list").width($(window).width()-260);
 $(".table_menu_list").height($(window).height());
  //当文档窗口发生改变时 触发  
    $(window).resize(function(){
	$(".widget-box").height($(window).height());
	 $(".table_menu_list").width($(window).width()-260);
	  $(".table_menu_list").height($(window).height());
	})
 
/*******树状图*******/
var setting = {
	view: {
		dblClickExpand: false,
		showLine: false,
		selectedMulti: false
	},
	data: {
		simpleData: {
			enable:true,
			idKey: "id",
			pIdKey: "pId",
			rootPId: ""
		}
	},
	callback: {
		beforeClick: function(treeId, treeNode) {
			var zTree = $.fn.zTree.getZTreeObj("tree");
			if (treeNode.isParent) {
				zTree.expandNode(treeNode);
				return false;
			} else {
				demoIframe.attr("src",treeNode.file + ".html");
				return true;
			}
		}
	}
};
	 
	 

var zNodes =[
	{ id:1, pId:0, name:"花海iatiant", open:true },
	{ id:11, pId:1, name:"蔬菜水果"},
	{ id:111, pId:11, name:"蔬菜"},
	{ id:112, pId:11, name:"苹果"},
	{ id:113, pId:11, name:"大蒜"},
	{ id:114, pId:11, name:"白菜"},
	{ id:115, pId:11, name:"青菜"},
	{ id:12, pId:1, name:"手机数码"},
	{ id:121, pId:12, name:"手机 "},
	{ id:122, pId:12, name:"照相机 "},
	{ id:13, pId:1, name:"电脑配件"},
	{ id:131, pId:13, name:"手机 "},
	{ id:122, pId:13, name:"照相机 "},
	

	
	{ id:2, pId:0, name:"花海iatiant", open:true},
	{ id:22, pId:2, name:"蔬菜水果"},
	{ id:222, pId:22, name:"蔬菜"},
	{ id:223, pId:22, name:"苹果"},
	{ id:224, pId:22, name:"大蒜"},
	{ id:225, pId:22, name:"白菜"},
	{ id:16, pId:2, name:"蔬菜水果"},
	{ id:111, pId:16, name:"蔬菜"},
	{ id:112, pId:16, name:"苹果"},
	{ id:113, pId:16, name:"大蒜"},
	{ id:114, pId:16, name:"白菜"},
	{ id:115, pId:16, name:"青菜"},
	
		{ id:3, pId:0, name:"梅毒", open:true},
	{ id:33, pId:3, name:"蔬菜水果"},
	{ id:333, pId:33, name:"蔬菜"},
	{ id:333, pId:33, name:"苹果"},
	{ id:334, pId:33, name:"大蒜"},
	{ id:335, pId:33, name:"白菜"},
	{ id:14, pId:3, name:"服装鞋帽"},
	{ id:141, pId:14, name:"手机 "},
	{ id:42, pId:14, name:"照相机 "},
	
	{ id:4, pId:0, name:"张小泉", open:true},
	{ id:44, pId:4, name:"蔬菜水果"},
	{ id:444, pId:44, name:"蔬菜"},
	{ id:445, pId:44, name:"苹果"},
	{ id:446, pId:44, name:"大蒜"},
	{ id:447, pId:44, name:"白菜"},
	{ id:114, pId:4, name:"服装鞋帽"},
	{ id:115, pId:114, name:"手机 "},
	{ id:116, pId:114, name:"照相机 "},

	
];
		
var code;
		
function showCode(str) {
	if (!code) code = $("#code");
	code.empty();
	code.append("<li>"+str+"</li>");
}
		
$(document).ready(function(){
	var t = $("#treeDemo");
	t = $.fn.zTree.init(t, setting, zNodes);
	demoIframe = $("#testIframe");
	demoIframe.bind("load", loadReady);
	var zTree = $.fn.zTree.getZTreeObj("tree");
	zTree.selectNode(zTree.getNodeByParam("id",'11'));
});	
/*产品-停用*/
function member_stop(obj,id){
	layer.confirm('确认要停用吗？',function(index){
		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs " onClick="member_start(this,id)" href="javascript:;" title="启用"><i class="icon-ok bigger-120"></i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
		$(obj).remove();
		layer.msg('已停用!',{icon: 5,time:1000});
	});
}

/*产品-启用*/
function member_start(obj,id){
	layer.confirm('确认要启用吗？',function(index){
		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn-success" onClick="member_stop(this,id)" href="javascript:;" title="停用"><i class="icon-ok bigger-120"></i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
		$(obj).remove();
		layer.msg('已启用!',{icon: 6,time:1000});
	});
}
/*产品-编辑*/
function member_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}

/*产品-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}
//面包屑返回值
var index = parent.layer.getFrameIndex(window.name);
parent.layer.iframeAuto(index);
$('.Order_form').on('click', function(){
	var cname = $(this).attr("title");
	var chref = $(this).attr("href");
	var cnames = parent.$('.Current_page').html();
	var herf = parent.$("#iframe").attr("src");
    parent.$('#parentIframe').html(cname);
    parent.$('#iframe').attr("src",chref).ready();;
	parent.$('#parentIframe').css("display","inline-block");
	parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
	//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
    parent.layer.close(index);
	
});
</script><script type="text/javascript">
//初始化宽度、高度  
 $(".widget-box").height($(window).height()); 
$(".table_menu_list").width($(window).width()-260);
 $(".table_menu_list").height($(window).height());
  //当文档窗口发生改变时 触发  
    $(window).resize(function(){
	$(".widget-box").height($(window).height());
	 $(".table_menu_list").width($(window).width()-260);
	  $(".table_menu_list").height($(window).height());
	})
 
/*******树状图*******/
var setting = {
	view: {
		dblClickExpand: false,
		showLine: false,
		selectedMulti: false
	},
	data: {
		simpleData: {
			enable:true,
			idKey: "id",
			pIdKey: "pId",
			rootPId: ""
		}
	},
	callback: {
		beforeClick: function(treeId, treeNode) {
			var zTree = $.fn.zTree.getZTreeObj("tree");
			if (treeNode.isParent) {
				zTree.expandNode(treeNode);
				return false;
			} else {
				demoIframe.attr("src",treeNode.file + ".html");
				return true;
			}
		}
	}
};



		
var code;
		
function showCode(str) {
	if (!code) code = $("#code");
	code.empty();
	code.append("<li>"+str+"</li>");
}
		
$(document).ready(function(){
	var t = $("#treeDemo");
	t = $.fn.zTree.init(t, setting, zNodes);
	demoIframe = $("#testIframe");
	demoIframe.bind("load", loadReady);
	var zTree = $.fn.zTree.getZTreeObj("tree");
	zTree.selectNode(zTree.getNodeByParam("id",'11'));
});	



/*产品-编辑*/
function member_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}

/*产品-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}
//面包屑返回值
var index = parent.layer.getFrameIndex(window.name);
parent.layer.iframeAuto(index);
$('.Order_form').on('click', function(){
	var cname = $(this).attr("title");
	var chref = $(this).attr("href");
	var cnames = parent.$('.Current_page').html();
	var herf = parent.$("#iframe").attr("src");
    parent.$('#parentIframe').html(cname);
    parent.$('#iframe').attr("src",chref).ready();;
	parent.$('#parentIframe').css("display","inline-block");
	parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
	//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
    parent.layer.close(index);
	
});
jQuery(function($) {
    var oTable1 = $('#sample-table').dataTable( {
    "aaSorting": [[ 1, "desc" ]],//默认第几个排序
  "bStateSave": true,//状态保存
  "aoColumnDefs": [
    //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
    {"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
  ] } );
    
    
    $('table th input:checkbox').on('click' , function(){
     var that = this;
     $(this).closest('table').find('tr > td:first-child input:checkbox')
     .each(function(){
      this.checked = that.checked;
      $(this).closest('tr').toggleClass('selected');
     });
      
    });
   
   
    $('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
    function tooltip_placement(context, source) {
     var $source = $(source);
     var $parent = $source.closest('table')
     var off1 = $parent.offset();
     var w1 = $parent.width();
   
     var off2 = $source.offset();
     var w2 = $source.width();
   
     if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
     return 'left';
    }
   }) 
/*用户-删除*/
function member_del(obj,id){
 layer.confirm('确认要删除吗？',function(index){
  $(obj).parents("tr").remove();
  layer.msg('已删除!',{icon:1,time:1000});
 });
}
 laydate({
    elem: '#start',
    event: 'focus' 
});
laydate({
    elem: '#end',
    event: 'focus' 
});
    /*购买*/
function member_fh(id){
   layer.open({
        type: 1,
        title: '确认购买',
  maxmin: true, 
  shadeClose:false, //点击遮罩关闭层
        area : ['800px' , '200px'],
        content:$('#add_menber_style'),
  btn:['确认','取消'],
  yes:function(index,layero){ 
   var num=0;
   var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
      layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',    
    icon:0,        
          }); 
      num++;
            return false;            
          } 
   });
    if(num>0){  return false;}   
          else{
     layer.alert('购买成功！请在采购订单查看',{
               title: '提示框',    
   icon:1,  
     });
      layer.close(index); 
    }               
  }
    });
}
//加减
$(".add").click(function() { 
        // $(this).prev() 就是当前元素的前一个元素，即 text_box 
        $(this).prev().val(parseInt($(this).prev().val()) + 1); 
        setTotal(); 
}); 
   
$(".min").click(function() { 
        // $(this).next() 就是当前元素的下一个元素，即 text_box 
        $(this).next().val(parseInt($(this).next().val()) - 1); 
        setTotal(); 
});  
1111111111111111111111111111111111111111111111111111111
  /*购买*/
function member_gm(id){
   layer.open({
        type: 1,
        title: '确认购买',
  maxmin: true, 
  shadeClose:false, //点击遮罩关闭层
        area : ['800px' , ''],
        content:$('#addgm_menber_style'),
  btn:['确认','取消'],
  yes:function(index,layero){ 
   var num=0;
   var str="";
     $(".addgm_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
      layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',    
    icon:0,        
          }); 
      num++;
            return false;            
          } 
   });
    if(num>0){  return false;}   
          else{
     layer.alert('购买成功！采购订单查看',{
               title: '提示框',    
   icon:1,  
     });
      layer.close(index); 
    }               
  }
    });
}
/*用户-删除*/
function member_del(obj,id){
 layer.confirm('确认要删除吗？',function(index){
  $(obj).parents("tr").remove();
  layer.msg('已删除!',{icon:1,time:1000});
 });
}
 laydate({
    elem: '#start',
    event: 'focus' 
});
laydate({
    elem: '#end',
    event: 'focus' 
});


//加减
$(".add").click(function() { 
        // $(this).prev() 就是当前元素的前一个元素，即 text_box 
        $(this).prev().val(parseInt($(this).prev().val()) + 1); 
        setTotal(); 
}); 
   
$(".min").click(function() { 
        // $(this).next() 就是当前元素的下一个元素，即 text_box 
        $(this).next().val(parseInt($(this).next().val()) - 1); 
        setTotal(); 
});  




</script>

  <script language="javascript">
	functio change(){
			var oDiv1=document.createElement("div");
				oDiv1.innerHTML="中华人民共和国";
			var input=document.createElement("input");
				input.type="button";
				input.value="点击事件";
				input.oDiv1=oDiv1;
				input.onclick=function(){
					this.oDiv1.innerHTML="蓝色理想";
				}
			document.body.appendChild(oDiv1);
			document.body.appendChild(input);
		}
	</script>

